#ifndef __BSP_USB_H
#define __BSP_USB_H

#include "main.h"

#ifdef __cplusplus
extern "C" {
#endif

void BspInitUsb(void);
void BspSetRecvCallBack(void (*OnFun)(uint8_t* buf, uint32_t len, void* owner), void* owner);
void BspSetSendCallBack(void (*OnFun)(uint8_t* buf, uint32_t len, void* owner), void* owner);
BOOL BspUsbWrite(uint8_t* buf, uint32_t len);
void BspUsbRead(uint8_t* buf, uint32_t len);
void BspUsbTransmitComplete(uint8_t* buf, uint32_t len, uint8_t epnum);

#ifdef __cplusplus
}
#endif

#endif


